package me.qingy.dubbo;

import me.qingy.dubbo.bean.Info;
import me.qingy.dubbo.service.impl.ConsumerServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ConsumerApplication {
	
	public static void main(String[] args) throws IOException {
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("consumer.xml");

		ConsumerServiceImpl consumerService = applicationContext.getBean(ConsumerServiceImpl.class);

		Info rpc = consumerService.rpc();
		System.out.println("调用完成...结果：" + rpc);

		System.in.read();
	}

}
